<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>

<%
            request.setAttribute("nombrePagina", "Editar Usuario");
%>

<f:view>

    <%@include file="/WEB-INF/jspf/cabeceraSeguridad.jspf" %>

    <h:messages styleClass="messages_content"
                layout="table"
                errorClass="errorClass"
                warnClass="warnClass"
                infoClass="infoClass" />

    <h:form>
        <h1>Editar Usuario</h1>

        <h:panelGrid columns="3" columnClasses="label,input,input" >
            <h:outputLabel for="txtLogin" value="Login:"/>
            <h:inputText id="txtLogin" value="#{iu.usuario.login}" readonly="true" size="30" maxlength="30" title="[El nombre de usuario no es editable.]" />
            <h:panelGroup/>

            <h:outputLabel for="txtPassword" value="Password:" />
            <h:inputSecret id="txtPassword" value="#{iu.usuario.passwordEdit}" size="30" maxlength="30"/>
            <h:panelGroup/>

            <h:outputLabel for="txtPasswordReview" value="Re-Password:" />
            <h:panelGroup>
                <h:inputSecret id="txtPasswordReview" value="#{iu.usuario.passwordReview}" size="30" maxlength="30"/>
                <h:outputText value="Ingrese el password nuevamente" styleClass="nota" />
            </h:panelGroup>
            <h:panelGroup/>

            <h:outputLabel for="txtEstado" value="Estado:"/>
            <h:selectOneMenu value="#{iu.usuario.estado}" >
                <f:selectItems value="#{iu.cmbEstadoEntidad}" />
            </h:selectOneMenu>
            <h:panelGroup/>

            <h:panelGroup/>
            <h:panelGroup/>
            <br/>

            <h:panelGroup/>
            <h:panelGroup>
                <h:commandLink  id="btnGuardar" styleClass="btn" value="Guardar" action="#{iu.actualizar}" />
                <h:commandLink  id="btnCancelar" styleClass="btn" value="Cancelar" action="#{iu.volver}" />
            </h:panelGroup>
            <h:panelGroup/>
        </h:panelGrid>



    </h:form>

    <%@include  file="/WEB-INF/jspf/pie.jspf" %>

</f:view>
